import instance from '../util/request'

/**
 * 发送绑定邮箱验证码
 * @param {*} email 
 */
export const sendBindEmail=(email)=>{
  return instance.post('/email/code/bind',{email})
}

/**
 * 发送换绑邮箱验证码
 * @param {*} email 
 */
export const sendChangeEmail=(email)=>{
  return instance.post('/email/code/change',{email})
}

/**
 * 发送重置密码验证码
 * @param {*} email 
 */
export const sendResetPassword=(username)=>{
  return instance.post('/email/code/resetPassword',{username})
}

/**
 * 验证邮箱
 * @param {*} email 
 */
export const verifyEmail=(email)=>{
  return instance.post('/email/verify',{email})
}